package com.qinggeng.project.api.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author 吴鹏飞
 * @date 2020/10/7
 */
@Data
public class LoginDto {
    //用户Id
    @ApiModelProperty(value = "userId",required = true)
    private Long userId;

    //是否绑定手机号
    @ApiModelProperty(value = "是否绑定 1=绑定 0=未绑定",required = true)
    private String isBind;

    //token
    @ApiModelProperty(value = "token",required = true)
    private String token;


    public static LoginDto getLoginDto(Long userId,String isBind,String token){
        LoginDto loginDto = new LoginDto();
        loginDto.userId = userId;
        loginDto.isBind = isBind;
        loginDto.token = token;
        return loginDto;
    }
}
